package com.gallop.mq.core;

import com.gallop.mq.core.codec.GsonMessageCodec;
import com.gallop.mq.core.codec.NopMessageCodec;

public enum CodecEnum {

    Gson(GsonMessageCodec.class),
    Nop(NopMessageCodec.class),
    ;

    private final Class<? extends MQMessageCodec> codecClazz;

    CodecEnum(Class<? extends MQMessageCodec> codecClazz) {
        this.codecClazz = codecClazz;
    }

    public Class<? extends MQMessageCodec> getCodecClazz() {
        return codecClazz;
    }
}
